package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * User:xieChao
 * Date:2022/9/25 11:19
 */
public class DisplayOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("打印图书！");
        int size = bookList.getUsedSize();
        for(int i = 0;i<size;i++){
            Book book = bookList.getPos(i);
            System.out.println(book);
        }
    }
}